package com.lagou.order.feign;

import com.lagou.commen.pojo.Goods;
import org.springframework.stereotype.Component;

/**
 * @author 李树飞
 */
@Component
public class GoodsFeignFallBack implements GoodsFeign {

    @Override
    public Goods findById(Integer id) {
        Goods goods = new Goods();
        goods.setId(-1);
        goods.setName("Hystrix Fallback");
        goods.setFlag("-1");
        goods.setGoodsDesc("Hystrix Fallback");
        goods.setPrice(-1);
        goods.setImages("Hystrix Fallback");
        goods.setGoodsStock(-1);
        return goods;
    }

//    @Override
//    public String getPort() {
//        return "-1";
//    }
}
